class CreateGames < ActiveRecord::Migration[5.2]
  def change
    create_table :games do |t|
      t.integer :master_id
      t.integer :guest_id
      t.integer :master_score, default: 0
      t.integer :guest_score, default: 0
      t.integer :league_game_id
      t.integer :state
      t.datetime :begin_at

      t.timestamps
    end
  end
end
